package mx.dota.activity;

import mx.dota.activity.base.BaseActivity;
import mx.dota.activity.publicFunction.MyApplication;

import mx.dota.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;

public class menuActivity extends BaseActivity{
	private Button m_btnView;
	private Button m_btnHelp;
	private Button m_btnExit;
	private Button m_btnchakanjifen;
	private Button m_getjifen;
	private TextView m_text;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.menu);
		
		m_btnView=(Button)findViewById(R.id.btnRead);
		m_btnHelp=(Button)findViewById(R.id.btnHelp);
		
		m_btnHelp.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				m_text=new TextView(menuActivity.this);
				m_text.setText(R.string.helpContent);
				new AlertDialog.Builder(menuActivity.this).setTitle(R.string.helpTitle).setIcon(android.R.drawable.ic_dialog_info).setView(m_text).setPositiveButton(R.string.helpButton, null).show();
			}
		});
		m_btnView.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent=new Intent(menuActivity.this, mainActivity.class);
				menuActivity.this.startActivity(intent);
			}
		});
		
	
		MyApplication.getInstance().addActivity(this);

	}
	
	
	

}
